/**
 * 
 */
package org.mspring.mlog.web.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.mspring.mlog.web.module.ucenter.AbstractUCenterWidget;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * @author Gao Youbo
 * @since 2013-6-12
 * @Description 处理UCenter所需的通用函数
 * @TODO
 */
public class UCenterVariableInterceptor extends HandlerInterceptorAdapter {

    /**
     * 当前访问页的所有者
     */
    public static final String SPACE_USER = "spaceUser";

    /**
     * 当前访问空间的URL
     */
    public static final String SPACE_URL = "spaceUrl";

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.springframework.web.servlet.handler.HandlerInterceptorAdapter#preHandle
     * (javax.servlet.http.HttpServletRequest,
     * javax.servlet.http.HttpServletResponse, java.lang.Object)
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        // TODO Auto-generated method stub
        if (handler instanceof AbstractUCenterWidget) {

        }
        return true;
    }

}
